package com.example.common.exception;

import lombok.Getter;

/**
 * 全局异常
 */
@Getter
public class GlobalException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    /**
     * 错误提示
     */
    private String message;

    /**
     * 错误明细，内部调试错误
     */
    private String detailMessage;

    /**
     * 空构造方法，避免反序化问题
     */
    public GlobalException() {

    }

    public GlobalException(String message) {
        super(message);
        this.message = message;
    }
}
